<?php

namespace Database\Factories;

use App\Models\Teacher;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Teacher>
 */
class TeacherFactory extends Factory
{
    protected $model = Teacher::class;
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition()
    {
        return [
            'name' => fake()->name(),
            'email' => fake()->unique()->safeEmail(),
            'gender' => fake()->randomElement([1, 2]),
            'phone' => fake()->phoneNumber(),
            'department' => fake()->randomElement(['计算机科学与技术', '软件工程', '网络工程'
                , '物联网工程', '通信工程', '自动化', '电气工程', '电子工程'
                , '材料科学与工程', '环境工程', '生物工程'])
        ];
    }
}
